package com.tadpole.music.holder.base;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.tadpole.music.R;


/**
 * Created by Administrator on 2019/1/30 0030.
 */

public class NoDataEmpty extends BaseViewHolder {

    private View itemView;
    private String empty;
    private TextView tvTitle;
    private ImageView ivImage;
    public NoDataEmpty(View itemView, String empty) {
        super(itemView);
        this.itemView = itemView;
        this.empty = empty;
    }

    @Override
    public void init(final int position) {
        tvTitle = itemView.findViewById(R.id.tvTitle);
        switch (empty) {
            case "NO_DATA":
                tvTitle.setText("暂无数据");
                break;
            case "NO_LOGIN":
                tvTitle.setText("登录后查看详情");
                break;
            case "NO_FUCK":
                tvTitle.setText("敬请期待");
                break;
            case "NO_RANK":
                tvTitle.setText("暂无榜单排名！");
                break;
        }

    }
}
